package service;




import dto.SysUserDto;
import dto.UserWithRoleDto;
import util.ResponseVo;

import java.util.List;

public interface UserService  {

    ResponseVo login(String username, String password);

    ResponseVo refreshToken(String token);

    SysUserDto findByName(String userName);

    List< SysUserDto> findUserMsg( SysUserDto user);

    void addUser( SysUserDto user, Long[] roles);

    UserWithRoleDto findUserWithRole(SysUserDto user);

    void updateUser( SysUserDto user, Long[] roles);

    void deleteUser( SysUserDto user);
    SysUserDto select(Object key);
}
